Skip to main content

Navigation Bar

Type

widget

Summary

The navigation bar widget is intended for use in mobile apps for switching between cards, although there are many other possible uses.

The widget displays a row of navigation items. Each of these has a name, which identifies it. Depending on the selected itemStyle, the items may display a label, icon, or both. All of the navigation item data is available as a single array via the itemArray property.

At any time, zero or one of the navigation items may be highlighted. This is useful, for example, for indicating the current card. When the user clicks one of the navigation items, the widget sends a hiliteChanged message.

Description

The navigation bar widget is intended for use in mobile apps for switching between cards, although there are many other possible uses.

The widget displays a row of navigation items. Each of these has a name, which identifies it. Depending on the selected itemStyle, the items may display a label, icon, or both. All of the navigation item data is available as a single array via the itemArray property.

At any time, zero or one of the navigation items may be highlighted. This is useful, for example, for indicating the current card. When the user clicks one of the navigation items, the widget sends a hiliteChanged message.

message: hiliteChanged

property: hilitedItemName, itemArray, itemIcons, itemLabels, itemNames, itemStyle

Children Properties

Message

NameSummarySyntax
hiliteChangedSent when a navigation item is selectedhiliteChanged

Property

NameSummarySyntax
hiliteColorThe color of the highlighted navigation itemget the hiliteColor of <widget> set the hiliteColor of <widget> to <color>
foreColorThe color of the navigation items that are not highlightedget the foreColor of <widget> set the foreColor of <widget> to <color>
backColorThe color of the navigation bar backgroundget the backColor of <widget> set the backColor of <widget> to <color>
borderColorThe color of the navigation bar borderget the borderColor of <widget> set the borderColor of <widget> to <color>
showBorderWhether there is a dividing line at the top of the widgetget the showBorder of <widget> set the showBorder of <widget> to {true | false}
hilitedItemNameThe name of the highlighted navigation itemget the hilitedItemName of <widget> set the hilitedItemName of <widget> to <pName>
opaqueWhether the background of the widget is filledget the opaque of <widget> set the opaque of <widget> to {true | false}
itemIconsThe normal-state icons for the navigation itemsget the itemIcons of <widget> set the itemIcons of <widget> to <icons>
itemStyleThe style with which navigation items are displayedget the itemStyle of <widget> set the itemStyle of <widget> to <style>
hilitedItemIconsThe highlighted-state icons for the navigation iconsget the hilitedItemIcons of <widget> set the hilitedItemIcons of <widget> to <icons>
itemNamesThe names of the navigation itemsget the itemNames of <widget> set the itemNames of <widget> to <names>
desiredHeightThe optimal height for the widgetget the desiredHeight of <widget>
hilitedItemThe index of the highlighted navigation itemget the hilitedItem of <widget> set the hilitedItem of <widget> to <itemNumber>
editModeWhether the widget is in edit modeget the editMode of <widget> set the editMode of <widget> to {true | false}
itemArrayThe full navigation item data.get the itemArray of <widget> set the itemArray of <widget> to <array>
itemLabelsThe labels of the navigation itemsget the itemLabels of <widget> set the itemLabels of <widget> to <labels>